import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView
    // },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/',
      name: 'root',
      component: () => import('../components/home.vue')
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../components/Regist.vue')
    },
    {
      path: '/loginer',
      name: 'loginter',
      component: () => import('../components/login.vue')
    },
    {
      path: '/messager',
      name: 'messager',
      component: () => import('../components/user/message.vue')
    },
    {
      path: '/messager1',
      name: 'messager1',
      component: () => import('../components/user/message1.vue')
    },
    {
      path: '/messager2',
      name: 'messager2',
      component: () => import('../components/user/message2.vue')
    }
  ]
})

export default router
